import request from "@/config/axios";

const baseUrl = "http://localhost:3000/dev-api/screen/person";

// 人员-会员人数排行榜
export const fetchGetPersonRank = (params?: any) => {
  return request.get({ url: `${baseUrl}/rank`, params });
};

// 人员-所有人员数据
export const fetchGetPersonAllNumber = (params?: any) => {
  return request.get({ url: `${baseUrl}/allNumber`, params });
};

// 人员-男女比例
export const fetchGetPersonSex = () => {
  return request.get({ url: `${baseUrl}/sex` });
};

// 人员-专业入团率
export const fetchGetPersonJoinedSociety = () => {
  return request.get({ url: `${baseUrl}/joinedSociety` });
};
